# 定义颜色代码
export FC_BLACK:='\e[30m'
export FC_RED:='\e[31m'
export FC_GREEN:='\e[32m'
export FC_YELLOW:='\e[33m'
export FC_BLUE:='\e[34m'
export FC_MAGENTA:='\e[35m'
export FC_CYAN:='\e[36m'
export FC_WHITE:='\e[37m'
export FC_DEFAULT:='\e[39m'
# 定义背景颜色代码
export BC_BLACK:='\e[40m'
export BC_RED:='\e[41m'
export BC_GREEN:='\e[42m'
export BC_YELLOW:='\e[43m'
export BC_BLUE:='\e[44m'
export BC_MAGENTA:='\e[45m'
export BC_CYAN:='\e[46m'
export BC_WHITE:='\e[47m'
export BC_DEFAULT:='\e[49m'
# 定义格式
export AC_NULL:='\e[0m'
export AC_DIM:='\e[2m'
export AC_UNDERLINE:='\e[4m'
export AC_FLICKER:='\e[5m'
export AC_REVERSE:='\e[7m'

export MY_RESET:=$(AC_NULL)
export MY_ERROR:=$(FC_RED)$(AC_UNDERLINE)
export MY_WARING:=$(FC_RED)
export MY_STAGE:=$(FC_BLUE)
export MY_BEGIN:=$(FC_GREEN)
export MY_SUCCESS:=$(FC_GREEN)
export MY_HELP:=$(FC_YELLOW)

##全局路径
export MYAPP_Path := $(shell pwd)
export SDK_Path := /home/alientek/ZAH/SDK_release
export COMMON_Path := $(shell pwd)/common
export CONFIG_Path := $(shell pwd)/config
export MAIN_Path := $(shell pwd)/main
export OUTPUT_Path := $(shell pwd)/output
export PROJECT_Path := $(shell pwd)/project
export TOOL_Path := $(shell pwd)/tool
export TEST_Path := $(shell pwd)/test

#交叉编译链
export CC:=/opt/atk-dlrv1126-toolchain/usr/bin/arm-linux-gnueabihf-gcc
export LCC:=gcc
#定义编译环境变量
#lname:=$(shell ls -d */ | grep -Ev "^(obj|lib)") 
My_Common_Dir:=$(shell ls -d $(COMMON_Path)/*/ | grep -v "^$(COMMON_Path)/obj" | sed 's/\//:/')
My_Include_Path:=$(foreach str, $(My_Common_Dir),$(shell pwd)/$(str))
My_Include_Path:=$(My_Include_Path)$(filter-out $(My_Include_Path),$(C_INCLUDE_PATH))

export C_INCLUDE_PATH:=$(My_Include_Path)$(C_INCLUDE_PATH)

export COMMON_INCLUDE_PATH := $(shell ls -d $(COMMON_Path)/*/ | grep -v "^$(COMMON_Path)/obj" | sed 's/\// -I\//')
